// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import 'assets/common.css'
import 'assets/stylus/index.styl'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import util from 'assets/js/util'

Vue.config.productionTip = false
Vue.use(util)
Vue.use(ElementUI)
/* eslint-disable no-new */
import Component from 'vue-class-component'

// Register the router hooks with their names
Component.registerHooks([
  'beforeRouteEnter',
  'beforeRouteLeave',
  'beforeRouteUpdate' // for vue-router 2.2+
])
// let grade={1:'一年级',2:'二年级',3:'三年级',4:'四年级',5:'五年级',6:'六年级',7:'初一',8:'初二',9:'初三',10:'高一',11:'高二',12:'高三'}
let grade=[{id:1,name:'一年级'},{id:2,name:'二年级'},{id:3,name:'三年级'},{id:4,name:'四年级'},{id:5,name:'五年级'},{id:6,name:'六年级'},{id:7,name:'初一'},{id:8,name:'初二'},{id:9,name:'初三'},{id:10,name:'高一'},{id:11,name:'高二'},{id:12,name:'高三'}]
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App },
  data:{grade:grade}
  // data:{config:{'01':[],'02':[],'03':[],'04':[],'05':[],'06':[],'07':[]}}
})
